<?php
namespace app\common\loglic;

class Option
{
    public function switch()
    {
        return [
            0  => '关闭',
            1  => '开启',
        ];
    }

    public function roleForm()
    {
        return [
            'user'  => '注册用户',
            'vip'   => '贵宾用户',
        ];
    }

    public function smsForm()
    {
        return [
            'aliyun'  => '阿里云短信',
        ];
    }

    public function transForm()
    {
        return [
            'aliyun'  => '阿里云智能语音交互',
        ];
    }

    public function payForm()
    {
        return [
            'alipay'  => '支付宝',
        ];
    }

    public function roles()
    {
        return array_merge($this->roleForm(),['admin'=>'管理员']);
    }
}